
#chmod 777 
# 提交信息
COMMIT_MESSAGE='BinaryAuto'
# 分支
BRANCH=master

# 索引库
SPEC_SOURCE_NAME='HQSpecs'
# 索引文件名
SPEC_NAME='SVProgressHUD'

TAG_Binary=false

VERSION='2.2.8'


if [ $TAG_Binary = true ]
then
# 标签
TAG="${VERSION}Binary"
else
# 标签
TAG=$VERSION
fi




git add .
git commit -m $COMMIT_MESSAGE
git push origin $BRANCH

echo " It is a test======="


git tag -a $TAG -m $COMMIT_MESSAGE
git push --tags

pod repo add $SPEC_SOURCE_NAME 'https://gitee.com/fsfd/hqspecs.git'
pod spec lint $SPEC_NAME.podspec --allow-warnings --verbose --use-libraries --skip-import-validation
pod repo push $SPEC_SOURCE_NAME $SPEC_NAME.podspec --allow-warnings --verbose --use-libraries --skip-import-validation

